package jrobutt;

import java.util.Collection;

public abstract class MultiKeyboardResponder implements KeyboardResponder
{
    public abstract Collection<? extends KeyboardResponder> get_children ();
    
    public void key_pressed (int key)
    {
        for (KeyboardResponder kr : get_children()) kr.key_pressed (key);
    }
    public void key_released (int key)
    {
        for (KeyboardResponder kr : get_children()) kr.key_released (key);
    }
}
